<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<link rel="icon" href="<?=base_url()?>/favicon.png" type="image/gif">
<title>PollWatcher - Information at the Touch of a Button!</title>

<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="author" content="Erwin Aligam - styleshout.com" />
<meta name="description" content="Site Description Here" />
<meta name="keywords" content="keywords, here" />
<meta name="robots" content="index, follow, noarchive" />
<meta name="googlebot" content="noarchive" />
	
<script type ="text/javascript" src="<?php echo base_url(); ?>public/js/jquery.jdpicker.js"></script>
<script type ="text/javascript" src="<?php echo base_url(); ?>public/js/dilimall.js"></script>
<script src="<?php echo base_url(); ?>public/js/jquery.tipsy.js"></script>
<script src="<?php echo base_url(); ?>public/js/jquery.js" type="text/javascript"></script>

<?php echo link_tag('public/css/default_main.css'); ?>
<link rel="stylesheet" href="<?php echo base_url(); ?>public/css/jdpicker.css" type="text/css" media="screen" /> 

</head>

<body>
<!-- wrap starts here -->
<div id="wrap">

	<!--header -->
	<div id="header">			
				
		<h1 id="logo-text"><a href="index.html" title=""> </a></h1>		
		<p id="slogan"> </p>						
	<!--header ends-->					
	</div>
		
	<!-- navigation starts-->	
	<div id="nav">
	<ul id = "jsddm">
		<li><?php echo anchor('/gate','My Dashboard');?></li>
		
		<li><?php echo anchor('user/view_survey', 'My Surveys'); ?>
			<ul>
				<li><?php echo anchor('user/create_survey/'.$id,'Create a survey'); ?></li>
				<li><?php echo anchor('user/delete_survey/', 'Delete Survey'); ?></li>
				<li><?php echo anchor('user/edit_survey/', 'Edit Settings'); ?></li>
			</ul>
		</li>
		<li><?php echo anchor('user/permissions', 'Subusers'); ?></li>	
		<li><?php echo anchor('user/manage_survey', 'Superusers'); ?></li>
		<li><?php echo anchor('user/edit_profile', 'Account Settings'); ?></li>
		<li><?php echo anchor('gate/logout', 'Logout');?></li>
	</ul>
	<!-- navigation ends-->	
	</div>	

<script type = "text/javascript">
	var timeout    = 500;
	var closetimer = 0;
	var ddmenuitem = 0;

	function jsddm_open(){  
		jsddm_canceltimer();
		jsddm_close();
	   	ddmenuitem = $(this).find('ul').css('visibility', 'visible');
	}

	function jsddm_close(){  
		if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');
	}

	function jsddm_timer(){  
		closetimer = window.setTimeout(jsddm_close, timeout);
	}

	function jsddm_canceltimer(){  
		if(closetimer){  
			window.clearTimeout(closetimer);
		  	closetimer = null;
		}
	}

	$(document).ready(function(){  
		$('#jsddm > li').bind('mouseover', jsddm_open)
	   	$('#jsddm > li').bind('mouseout',  jsddm_timer)
	});
	document.onclick = jsddm_close;
</script>


			
	<!-- content starts -->
	<div id="content">
	
		<div id="main">
			<?php echo $body; ?>	

		<!-- main ends -->	
		</div>
		<!-- //REMOVED SIDEBAR		
			<div id="sidebar">		
			<?php echo "This is the Sidebar"; ?>		
			
		</div> -->
		
	<!-- content ends-->	
	</div>
		
	<!-- footer starts -->		
	<div id="footer">
	<strong>				
			<p>Copyleft 2011: Powered by PollWatcher | CS 192 Software Engineering, UP Diliman <br>
			
			
			<a href="http://www.bluewebtemplates.com/" title="Website Templates">Website Templates</a> by <a href="http://www.styleshout.com/">Styleshout</a> |
			Valid <a href="http://validator.w3.org/check?uri=referer">XHTML</a> | 
			<a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>   		
   		</p>				
	</strong>
	<!-- footer ends-->
	</div>

<!-- wrap ends here -->
</div>

</body>
</html>
